<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">


                <h3>Lista de Areas</h3>



                  <!--  <p:dataTable var="areaTemp" value="#{AreaController.areas}" emptyMessage="Nenhum Arquivo Encontrado" paginator="true" rows="10"
                                 paginatorTemplate="{FirstPageLink}{PreviousPageLink} {PageLinks}{NextPageLink} {LastPageLink}”{RowsPerPageDropdown}"
                                 rowsPerPageTemplate="10,20,50,100"
                                 previousPageLinkLabel="ANTERIO"  nextPageLinkLabel="PROXIMO" firstPageLinkLabel="PRIMEIRO" lastPageLinkLabel="ULTIMO">-->
                <p:dataTable var="areaTemp" value="#{AreaController.areas}" emptyMessage="Nenhum Arquivo Encontrado" paginator="false">


                    <p:column sortBy="#{areaTemp.area}">
                        <f:facet name="header">
                            <h:outputText value="Nome" />
                        </f:facet>
                        <h:outputText value="#{areaTemp.area}" />
                    </p:column>

                    <p:column>
                        <f:facet name="header">
                            <h:outputText value="Opção" />
                        </f:facet>
                        <h:commandLink action="#{AreaController.load}" value="visualizar" />
                    </p:column>

                </p:dataTable>


            </div>
        </ui:composition>

    </body>
</html>
